using System;

namespace Entities
{
	public class FollowAction : MobAction
	{
		public FollowAction ()
		{
			type = TypeAction.follow;
		}
		
		public override MobAction nextAction(Mob mob, Fighter target){
			if (mob.getLeader().distance (mob) > minfollowrange){
				return new FollowAction();
			}
			
			return new IdleAction();
		}
	}
}

